import request from '@/utils/request'

// 查询大表档案列表
export function listAllTerminals(query) {
  return request({
    url: '/device/terminalsInfo/listAllTerminals',
    method: 'get',
    params: query
  })
}

// 查询大表档案列表
export function listTerminalsInfo(query) {
  return request({
    url: '/device/terminalsInfo/list',
    method: 'get',
    params: query
  })
}

// 查询大表档案列表
export function getUnbindTerminals(query) {
  return request({
    url: '/device/terminalsInfo/getUnbindTerminals',
    method: 'get',
    params: query
  })
}

// 查询大表档案详细
export function getTerminalsInfo(ID) {
  return request({
    url: '/device/terminalsInfo/' + ID,
    method: 'get'
  })
}

// 新增大表档案
export function addTerminalsInfo(data) {
  return request({
    url: '/device/terminalsInfo',
    method: 'post',
    data: data
  })
}

// 修改大表档案
export function updateTerminalsInfo(data) {
  return request({
    url: '/device/terminalsInfo',
    method: 'put',
    data: data
  })
}

// 删除大表档案
export function delTerminalsInfo(ID) {
  return request({
    url: '/device/terminalsInfo/' + ID,
    method: 'delete'
  })
}
